Tw 3961 v 3 java sdk grant id isnt included in the get folders response#298
Draft
Tw 3961 v 3 java sdk grant id isnt included in the get folders response#298
Conversation
- Add select parameter to ListMessagesQueryParams, FindMessageQueryParams, ListThreadsQueryParams, FindThreadQueryParams, ListContactsQueryParams, FindContactsQueryParams, ListEventQueryParams, FindEventQueryParams, ListCalendersQueryParams, FindCalendarQueryParams, and FindAttachmentQueryParams - Create new FindFolderQueryParams, FindThreadQueryParams, and FindCalendarQueryParams classes - Update Folders, Threads, and Calendars resources to accept query parameters in find methods - Make model properties (grantId, id, etc.) optional in Message, Contact, Event, Thread, Folder, and Calendar models to support select functionality - Add comprehensive tests ensuring backward compatibility - Update examples to demonstrate select parameter usage Fixes issue where grant_id wasn't included in responses when using select parameter, preventing model deserialization errors.
- Add SelectParameterDeserializationTests to verify models handle missing fields correctly - Add SelectParameterIntegrationTests to verify query parameter handling - Add comprehensive SelectParameterExample demonstrating usage across all endpoints - Fix nullable field access in EventsTests to prevent compilation errors - Update CHANGELOG.md with test coverage and examples information All specified endpoints already have select parameter support and work correctly. The reported grant_id issue appears to be resolved as deserialization properly handles missing fields when using select parameter.
Pull Request SummaryThis pull request introduces several changes aimed at improving the flexibility and performance of the Nylas SDK by allowing clients to request only specific fields in API responses, thereby reducing payload size and latency. Here are the key changes:
Overall, these changes aim to enhance the SDK's performance and flexibility by allowing clients to tailor API responses to their specific needs, reducing unnecessary data transfer and processing. Files Changed
View more in PlayerZero |
nylas + PlayerZeroView more in PlayerZero |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
License
I confirm that this contribution is made under the terms of the MIT license and that I have the authority necessary to make this contribution on behalf of its copyright owner.